AM_CXXFLAGS = $(LEMON_CFLAGS) $(HDF_CFLAGS) $(GSL_CFLAGS) -DNDEBUG

LIBS =	$(LEMON_LIBS) $(HDF_LIBS) $(GSL_LIBS)

#hdf scientific dataset library wrapper

src_libsds_la_SOURCES =			src/sds/sfile.cpp \
					src/sds/sdataview.cpp \
					src/sds/sdataset.cpp \
					src/sds/sutility.cpp \
					src/sds/sdatatype.cpp \
					src/sds/sattribute.cpp 

lib_LTLIBRARIES +=		 	src/libsds.la

#segmentation

src_mergesegmentation_SOURCES =		src/mergesegmentation.cpp \
					src/cluster.cpp

src_meanmergesegmentation_SOURCES =	src/meanmergesegmentation.cpp \
					src/cluster.cpp

src_simannsegmentation_SOURCES = 	src/simannsegmentation.cpp \
					src/cluster.cpp

src_rightdownsegmentation_SOURCES =	src/rightdownsegmentation.cpp \
					src/cluster.cpp \
					src/segment.cpp 

src_graphsegmentation_SOURCES =		src/graphsegmentation.cpp \
					src/cluster.cpp \
					src/segment.cpp

src_meancutsegmentation_SOURCES =	src/meancutsegmentation.cpp \
					src/cluster.cpp \
					src/segment.cpp

src_normcutsegmentation_SOURCES =	src/normcutsegmentation.cpp \
					src/cluster.cpp \
					src/segment.cpp \
					src/random.cpp

#clustering

src_isodatacluster_SOURCES =	 	src/isodatacluster.cpp \
					src/cluster.cpp

src_simanncluster_SOURCES =	 	src/simanncluster.cpp \
					src/cluster.cpp

src_emcluster_SOURCES =			src/emcluster.cpp \
					src/cluster.cpp

src_segisodatacluster_SOURCES =		src/segisodatacluster.cpp \
					src/cluster.cpp \
					src/segment.cpp

src_segsimanncluster_SOURCES =		src/segsimanncluster.cpp \
					src/cluster.cpp

#classification

src_oldclassify_SOURCES =		src/oldclassify.cpp

src_normalclassify_SOURCES =	 	src/normalclassify.cpp \
					src/cluster.cpp

src_advancedclassify_SOURCES =		src/advancedclassify.cpp \
					src/cluster.cpp

src_mindistclassify_SOURCES =		src/mindistclassify.cpp \
					src/cluster.cpp

src_simannclassify_SOURCES =	 	src/simannclassify.cpp \
					src/cluster.cpp

src_maxlhclassify_SOURCES =		src/maxlhclassify.cpp \
					src/cluster.cpp

src_segmaxlhclassify_SOURCES =		src/segmaxlhclassify.cpp \
					src/cluster.cpp \
					src/segment.cpp

src_minchisqrclassify_SOURCES =		src/minchisqrclassify.cpp \
					src/cluster.cpp

src_pixelclassify_SOURCES =		src/pixelclassify.cpp \
					src/cluster.cpp

src_segclassify_SOURCES =		src/segclassify.cpp \
					src/cluster.cpp \
					src/segment.cpp

#checker

src_segmentchecker_SOURCES =		src/segmentchecker.cpp

src_clusterchecker_SOURCES =		src/clusterchecker.cpp

src_checker_SOURCES =			src/checker.cpp

#others

src_satregion_SOURCES =			src/satregion.c

src_temdiff_SOURCES =			src/temdiff.cc

src_gradient_SOURCES =			src/gradient.cpp \
					src/cluster.cpp

noinst_PROGRAMS +=		 	src/mergesegmentation \
					src/meanmergesegmentation \
					src/simannsegmentation \
					src/rightdownsegmentation \
					src/graphsegmentation \
					src/meancutsegmentation \
					src/normcutsegmentation \
					src/isodatacluster \
					src/emcluster \
					src/simanncluster \
					src/segsimanncluster \
					src/segisodatacluster \
					src/oldclassify \
					src/normalclassify \
					src/advancedclassify \
					src/maxlhclassify \
					src/segmaxlhclassify \
					src/mindistclassify \
					src/minchisqrclassify \
					src/simannclassify \
					src/segmentchecker \
					src/clusterchecker \
					src/pixelclassify \
					src/segclassify \
					src/checker \
					src/satregion \
					src/temdiff \
					src/gradient
